package com.power.flowable.api;

import com.plf.common.domain.ResponseDTO;
import com.power.flowable.model.pageinfo.AdmrePageInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@FeignClient(value = "sfflow-svr", contextId = "sfflow-svr", path = "/sfflow-svr")
@RestController
public interface ICompreQueryFeign {

    /**
     * 行政复议综合查询-主流程查询
     *
     * @param pageinfo
     * @return
     */
    @PostMapping("/flow/AcceptCompreQuery")
    ResponseDTO AcceptCompreQuery(@RequestBody AdmrePageInfo pageinfo);


    /**
     * 行政复议综合查询-子流程查询
     *
     * @param pageinfo
     * @return
     */
    @PostMapping("/flow/AcceptSubCompreQuery")
    ResponseDTO AcceptSubCompreQuery(@RequestBody AdmrePageInfo pageinfo);


    /**
     * 复议监督综合查询
     * @param pageinfo
     * @return
     */
    @PostMapping("/flow/SuperviseCompreQuery")
    ResponseDTO SuperviseCompreQuery(@RequestBody AdmrePageInfo pageinfo);

    /**
     * 公共查询分派的案件
     * @param pageinfo
     * @return
     */
    @PostMapping("/flow/CommonAssignQuery")
    ResponseDTO CommonAssignQuery(@RequestBody AdmrePageInfo pageinfo);

}
